﻿using Dashboard.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Dashboard.Controllers
{
    public class InstrumentsController : Controller
    {
        //
        // GET: /Instruments/
        public ActionResult Index()
        {
			List<InstrumentView> model = new List<InstrumentView>()
			{
				new InstrumentView(){
					NetworkName = "EU Network", SerialNumber = "12345", Name = "System II - 1", LastSync = DateTime.Today},
				new InstrumentView(){
					NetworkName = "EU Network", SerialNumber = "778889900", Name = "System II - 5000", ConnectSpeed = 1024, LastSync=DateTime.Now.AddHours(-2)},
				new InstrumentView(){
					NetworkName = "EU Network", SerialNumber = "12345", Name = "System II - 1"},
				new InstrumentView(){
					NetworkName = "Norway", SerialNumber = "112", Name = "XDS", ConnectSpeed = 500.0},
				new InstrumentView(){
					NetworkName = "Norway", SerialNumber = "332 23", Name = "XDS RCA 2", ConnectSpeed = 500.0}
			};

            return View(model);
        }
	}
}